package com.tosmart.jorm.face;

/**
 * JORM framework supports EXAMPLE find, similar
 * to the Hibernate EXAMPLE FINDING.
 * <p/>
 * This interface is used for example finding.
 * <p/>
 * To provide users with a filter interface to
 * allow users to decide which fields of the
 * Example Entity will be used as search params
 * to use.
 *
 * @author tosmart@gmail.com
 * @see JormFace
 */
public interface ColumnSelector {
    /**
     * decide which fields of the Example Entity
     * will be used as search params to use.
     *
     * @param name  the name of the Field of the
     *              Example Entity.
     * @param value the value of the Field of the
     *              Example Entity
     * @return result of filtrate, pass or not
     */
    boolean include(String name, Object value);
}
